package com.example.demo.sys.dao;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 */
public class SysUser implements Serializable {

    private Integer id;
    //用户名称
    private String name;
    //账号
    private String account;
    //绑定角色
    private Integer userRole;
    //性别
    private String sex;
    //手机号
    private String phone;
    //密码
    private String password;
    //状态
    private String state;
    //链接状态
    private String linkState;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date modifeTime;

    private String  roleName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLinkState() {
        return linkState;
    }

    public void setLinkState(String linkState) {
        this.linkState = linkState;
    }

    public Date getModifeTime() {
        return modifeTime;
    }

    public void setModifeTime(Date modifeTime) {
        this.modifeTime = modifeTime;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
